using Zhaoxi.MSACommerce.PaymentService.Core.Enums;
using ZhaoXi.MSACommerce.SharedKenel.Domain;

namespace Zhaoxi.MSACommerce.PaymentService.Core.Entities;

public class PayLog: BaseAuditEntity
{
    public long OrderId { get; set; }
    public long TotalFee { get; set; }
    public long UserId { get; set; }
    public PayStatus Status { get; set; }
    public DateTime? PayTime {get; set; }

    protected PayLog()
    {
        
    }

    public PayLog(long orderId, long totalFee, long userId)
    {
        OrderId = orderId;
        TotalFee = totalFee;
        UserId = userId;
        Status = PayStatus.UnPay;
    }
}